import axios from 'axios'

const instance = axios.create({
    baseURL: 'http://yinxiang.ruanmengkeji.cn/api/',
})

instance.interceptors.request.use(config => {
    (config) => {
        config.headers.token = window.sessionStorage.getItem('token')
    }
    return config
})

instance.interceptors.response.use(config => {
    return config
})

export default instance